<%--
    Document   : index
    Created on : Mar 10, 2014, 10:54:45 PM
    Author     : Anton Strack
--%>
<article id="${comment.id}" class="panel csd_comment">
    <div class="panel-heading"><h3 class="panel-title">${comment.name}</h3><p class="small">On the post last updated: <csd:displayTimestamp timestamp="${comment.parentCommentedDate}"></csd:displayTimestamp></p></div>
    <div class="panel-body csd_comment_body">
        <p>
            ${comment.body}
        </p>
    </div>
    <div class="panel-footer">
        <p>Created By: ${comment.getDerivedValue("CreatedByName")} on <csd:displayTimestamp timestamp="${comment.createdDate}"></csd:displayTimestamp>
        <c:if test="${comment.createdDate != comment.updatedDate}">
            and updated
            <c:if test="${comment.updatedById != comment.createdById}">
                by: ${comment.getDerivedValue("UpdatedByName")}
            </c:if>
            on <csd:displayTimestamp timestamp="${comment.updatedDate}"></csd:displayTimestamp>
        </c:if>
    </p><p><a href="${req.contextPath}?action=delete&resource=comment&id=${comment.id}">Delete Comment</a> | <a href="${req.contextPath}?action=update&resource=comment&id=${comment.id}">Update Comment</a></p>
</div>
</article>

